package com.shangcheng.dubbo.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shangcheng.model.domain.SmsHomeRecommendProduct;
import com.shangcheng.model.domain.SmsHomeRecommendSubject;

import java.util.List;

/**
 * @author shiqiang
 * @version 1.0
 * @date 2022/5/13 14:30
 */
public interface SmsHomeRecommendSubjectApi {
    //批量添加推荐专题
    void createSubject(List<SmsHomeRecommendSubject> homeRecommendSubjectList);
    //批量删除推荐专题
    void deleteSubject(Integer[] ids);
    //分页查询推荐专题
    IPage<SmsHomeRecommendSubject> subjectList(Integer pageNum, Integer pageSize, String subjectName, Integer recommendStatus);
    //批量修改推荐状态
    void updateSubjectStatus(Integer[] ids, Integer recommendStatus);
    //修改推荐排序
    void updateSubjectSort(Integer id, Integer sort);

    List<SmsHomeRecommendSubject> findByName(List<SmsHomeRecommendSubject> homeRecommendSubjectList);
}
